<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>个人资料 - 多语言旅行助手</title>
    <link rel="stylesheet" href="style.css">
    <link rel="stylesheet" href="style-profile.css">
</head>
<body>
    <!-- 顶部导航栏 -->
    <header>
        <h1>多语言旅行助手</h1>
        <nav>
            <ul>
                <li><a href="index.html">首页</a></li>
                <li><a href="learning.html">学习中心</a></li>
                <li><a href="translation.html">翻译</a></li>
                <li><a href="culture.html">文化知识库</a></li>
                <li><a href="map.html">离线地图</a></li>
                <li><a href="travel-plan.html">旅行计划</a></li>
                <li><a href="offline-content.html">离线内容</a></li>
                <li><a href="profile.html" class="active">个人资料</a></li>
                <li><a href="settings.html">设置</a></li>
            </ul>
        </nav>
    </header>

    <!-- 侧边导航栏 -->
    <aside class="side-nav">
        <ul>
            <li>
                <a href="index.html">
                    <img src="images/home.svg" alt="首页图标">
                    <span>首页</span>
                </a>
            </li>
            <li>
                <a href="learning.html">
                    <img src="images/book-open-bold.svg" alt="学习图标">
                    <span>学习</span>
                </a>
            </li>
            <li>
                <a href="translation.html">
                    <img src="images/vector_25_310.svg" alt="翻译图标">
                    <span>翻译</span>
                </a>
            </li>
            <li>
                <a href="culture.html">
                    <img src="images/globe-bold.svg" alt="文化图标">
                    <span>文化</span>
                </a>
            </li>
            <li>
                <a href="map.html">
                    <img src="images/vector_25_317.svg" alt="地图图标">
                    <span>地图</span>
                </a>
            </li>
            <li>
                <a href="offline-content.html">
                    <img src="images/vector_25_324.svg" alt="离线内容图标">
                    <span>离线</span>
                </a>
            </li>
            <li>
                <a href="settings.html">
                    <img src="images/vector_25_331.svg" alt="设置图标">
                    <span>设置</span>
                </a>
            </li>
        </ul>
    </aside>

    <!-- 内容区 -->
    <main class="content profile-content">
        <h1 class="page-title">个人资料</h1>
        
        <div class="profile-container">
            <div class="profile-header">
                <div class="profile-avatar">
                    <img src="images/placeholder.svg" alt="用户头像">
                    <button class="change-avatar-btn">更换头像</button>
                </div>
                <div class="profile-info">
                    <h2>旅行者</h2>
                    <p class="profile-email">user@example.com</p>
                    <div class="profile-stats">
                        <div class="profile-stat">
                            <div class="stat-value">3</div>
                            <div class="stat-label">旅行计划</div>
                        </div>
                        <div class="profile-stat">
                            <div class="stat-value">5</div>
                            <div class="stat-label">已下载内容</div>
                        </div>
                        <div class="profile-stat">
                            <div class="stat-value">12</div>
                            <div class="stat-label">学习天数</div>
                        </div>
                    </div>
                </div>
            </div>
            
            <div class="profile-sections">
                <div class="profile-section">
                    <h3>账户信息</h3>
                    <div class="profile-form">
                        <div class="form-group">
                            <label for="username">用户名</label>
                            <input type="text" id="username" value="旅行者">
                        </div>
                        <div class="form-group">
                            <label for="email">电子邮箱</label>
                            <input type="email" id="email" value="user@example.com">
                        </div>
                        <div class="form-group">
                            <label for="phone">手机号码</label>
                            <input type="tel" id="phone" placeholder="添加手机号码">
                        </div>
                        <button class="primary-btn">保存更改</button>
                    </div>
                </div>
                
                <div class="profile-section">
                    <h3>学习统计</h3>
                    <div class="learning-stats">
                        <div class="learning-stat-row">
                            <div class="learning-stat-label">学习总时长</div>
                            <div class="learning-stat-value">24小时</div>
                        </div>
                        <div class="learning-stat-row">
                            <div class="learning-stat-label">已学习短语</div>
                            <div class="learning-stat-value">120个</div>
                        </div>
                        <div class="learning-stat-row">
                            <div class="learning-stat-label">完成对话练习</div>
                            <div class="learning-stat-value">15次</div>
                        </div>
                        <div class="learning-stat-row">
                            <div class="learning-stat-label">翻译次数</div>
                            <div class="learning-stat-value">56次</div>
                        </div>
                    </div>
                    <div class="learning-progress">
                        <h4>学习进度</h4>
                        <div class="language-progress">
                            <div class="language-progress-item">
                                <div class="language-name">英语</div>
                                <div class="progress-bar-container">
                                    <div class="progress-bar">
                                        <div class="progress-fill" style="width: 65%;"></div>
                                    </div>
                                    <div class="progress-value">65%</div>
                                </div>
                            </div>
                            <div class="language-progress-item">
                                <div class="language-name">日语</div>
                                <div class="progress-bar-container">
                                    <div class="progress-bar">
                                        <div class="progress-fill" style="width: 40%;"></div>
                                    </div>
                                    <div class="progress-value">40%</div>
                                </div>
                            </div>
                            <div class="language-progress-item">
                                <div class="language-name">法语</div>
                                <div class="progress-bar-container">
                                    <div class="progress-bar">
                                        <div class="progress-fill" style="width: 25%;"></div>
                                    </div>
                                    <div class="progress-value">25%</div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <div class="profile-section">
                    <h3>旅行历史</h3>
                    <div class="travel-history">
                        <div class="travel-item">
                            <div class="travel-icon">
                                <img src="images/placeholder.svg" alt="旅行图标">
                            </div>
                            <div class="travel-details">
                                <h4>纽约之行</h4>
                                <div class="travel-meta">
                                    <span class="travel-date">2025年3月15日 - 2025年3月20日</span>
                                    <span class="travel-status completed">已完成</span>
                                </div>
                            </div>
                            <a href="travel-plan.html" class="view-details-btn">查看详情</a>
                        </div>
                        
                        <div class="travel-item">
                            <div class="travel-icon">
                                <img src="images/placeholder.svg" alt="旅行图标">
                            </div>
                            <div class="travel-details">
                                <h4>东京之旅</h4>
                                <div class="travel-meta">
                                    <span class="travel-date">2025年7月15日 - 2025年7月21日</span>
                                    <span class="travel-status upcoming">计划中</span>
                                </div>
                            </div>
                            <a href="travel-plan.html" class="view-details-btn">查看详情</a>
                        </div>
                        
                        <div class="travel-item">
                            <div class="travel-icon">
                                <img src="images/placeholder.svg" alt="旅行图标">
                            </div>
                            <div class="travel-details">
                                <h4>巴黎假期</h4>
                                <div class="travel-meta">
                                    <span class="travel-date">2025年9月10日 - 2025年9月20日</span>
                                    <span class="travel-status upcoming">计划中</span>
                                </div>
                            </div>
                            <a href="travel-plan.html" class="view-details-btn">查看详情</a>
                        </div>
                    </div>
                </div>
                
                <div class="profile-section">
                    <h3>账户安全</h3>
                    <div class="security-options">
                        <div class="security-option">
                            <div class="security-option-info">
                                <h4>修改密码</h4>
                                <p>定期更改密码可以提高账户安全性</p>
                            </div>
                            <button class="secondary-btn">修改</button>
                        </div>
                        
                        <div class="security-option">
                            <div class="security-option-info">
                                <h4>两步验证</h4>
                                <p>添加额外的安全层来保护您的账户</p>
                            </div>
                            <label class="toggle-switch">
                                <input type="checkbox">
                                <span class="toggle-slider"></span>
                            </label>
                        </div>
                        
                        <div class="security-option">
                            <div class="security-option-info">
                                <h4>登录设备</h4>
                                <p>查看和管理已登录的设备</p>
                            </div>
                            <button class="secondary-btn">查看</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </main>

    <footer>
        <p>&copy; 2025 多语言旅行助手 | 版本 1.0</p>
    </footer>

    <script src="script.js"></script>
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // 更改头像按钮
            document.querySelector('.change-avatar-btn').addEventListener('click', function() {
                alert('更换头像功能即将上线，敬请期待！');
            });
            
            // 保存更改按钮
            document.querySelector('.profile-form .primary-btn').addEventListener('click', function() {
                alert('个人信息已更新！');
            });
            
            // 安全选项按钮
            document.querySelectorAll('.security-option .secondary-btn').forEach(btn => {
                btn.addEventListener('click', function() {
                    alert('此功能即将上线，敬请期待！');
                });
            });
        });
    </script>
</body>
</html>